

#include "modules/player.h"
#include "stdio.h"
#include "comm_lib.h"

#ifdef SELF_TEST

int player_show_task(void* fd, unsigned char* buf, int buf_len)
{
	//FILE* pf;
	int file_fd_test = 0;
	char name[30];
	static int count = 0;

	//if ( count % 3 == 1)
	{
		sprintf(name,"r%d.jpg",count);

		file_fd_test = fopen(name,"wb+");
		//pf = fopen(name,"wb+");

		if ( file_fd_test != NULL)
		//if ( pf != NULL)
		{
			fwrite(buf, 1 ,buf_len, file_fd_test);
			fclose(file_fd_test);

			//fwrite(buf, 1 ,buf_len, pf);
			//fclose(pf);
		}
	}

	TRACE("\r\n recv done %d ", count++);
	return 0;
}

int player_initialize()
{
	return 0;
}

int player_poll()
{
	return 0;
}

int player_finalize()
{
	return 0;
}

#endif
